Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simulate rsvps for realtime quickstart #8180

Merged
merged 1 commit into from
Feb 14, 2022

Conversation

richardstartin
Copy link
Member

@richardstartin richardstartin commented Feb 9, 2022

The feed http://stream.meetup.com/2/rsvps was retired. As an external dependency, this should not be used to fail builds.

@codecov-commenter
Copy link

codecov-commenter commented Feb 9, 2022

Codecov Report

Merging #8180 (21540d6) into master (5fa4737) will decrease coverage by 6.73%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #8180      +/-   ##
============================================
- Coverage     71.41%   64.68%   -6.74%     
- Complexity     4302     4303       +1     
============================================
  Files          1623     1578      -45     
  Lines         84312    82431    -1881     
  Branches      12639    12435     -204     
============================================
- Hits          60213    53319    -6894     
- Misses        19974    25301    +5327     
+ Partials       4125     3811     -314     
Flag Coverage Δ
integration1 ?
integration2 ?
unittests1 67.88% <ø> (ø)
unittests2 14.16% <ø> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...a/org/apache/pinot/common/metrics/MinionMeter.java 0.00% <0.00%> (-100.00%) ⬇️
...g/apache/pinot/common/metrics/ControllerMeter.java 0.00% <0.00%> (-100.00%) ⬇️
.../apache/pinot/common/metrics/BrokerQueryPhase.java 0.00% <0.00%> (-100.00%) ⬇️
.../apache/pinot/common/metrics/MinionQueryPhase.java 0.00% <0.00%> (-100.00%) ⬇️
...ache/pinot/server/access/AccessControlFactory.java 0.00% <0.00%> (-100.00%) ⬇️
...he/pinot/common/messages/SegmentReloadMessage.java 0.00% <0.00%> (-100.00%) ⬇️
...pinot/core/data/manager/realtime/TimerService.java 0.00% <0.00%> (-100.00%) ⬇️
...che/pinot/controller/util/TableMetadataReader.java 0.00% <0.00%> (-100.00%) ⬇️
...pinot/minion/exception/TaskCancelledException.java 0.00% <0.00%> (-100.00%) ⬇️
...not/common/exception/HttpErrorStatusException.java 0.00% <0.00%> (-100.00%) ⬇️
... and 370 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5fa4737...21540d6. Read the comment docs.

@richardstartin richardstartin changed the title retire quickstart rsvps simulate rsvps for realtime quickstart Feb 9, 2022
Copy link
Contributor

@walterddr walterddr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm overall.

session.addMessageHandler(String.class, getMessageHandler());
}
}, ClientEndpointConfig.Builder.create().build(), new URI("wss://stream.meetup.com/2/rsvps"));
_source.start();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i felt like this original construct was to demonstrate how to create a listening client against some public API and redirect data into pinot.

If we are not doing such it this can simply be a periodic task that runs _producer.produce(createMessage) without the source/consumer wrapper

@Jackie-Jiang
Copy link
Contributor

We want to have some real data in the quick-start instead of random values for demo purposes. Is there a replacement for the retired stream? If not, we should probably consider changing it to use the github events stream

@richardstartin
Copy link
Member Author

We want to have some real data in the quick-start instead of random values for demo purposes. Is there a replacement for the retired stream? If not, we should probably consider changing it to use the github events stream

I don't think depending on a third party stream to gate PRs is a good idea, because they tend to change or can even be removed.

@Jackie-Jiang
Copy link
Contributor

I don't think depending on a third party stream to gate PRs is a good idea, because they tend to change or can even be removed.

Agree. We can probably add a quick-start to use this random event generator for testing purpose.

Copy link
Contributor

@Jackie-Jiang Jackie-Jiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After a second thought, I feel having a test against our quick-start should be okay as we also want to ensure quick-start can run properly in all JDK versions

@@ -38,20 +36,17 @@ public MeetupRsvpJsonStream(boolean partitionByKey)
}

@Override
protected MessageHandler.Whole<String> getMessageHandler() {
protected Consumer<RSVP> createConsumer() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the json stream, we actually expect the event to have nested json inside. With the current approach, all the fields are flattened

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, there's no record of what that JSON looked like. I'm trying to stop the CI build from failing so people can merge PRs.

@Jackie-Jiang Jackie-Jiang merged commit a6cb4b4 into apache:master Feb 14, 2022
xiangfu0 pushed a commit to xiangfu0/pinot that referenced this pull request Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants